import axios from "../utils/axios";

// 创建菜单接口
export const createMenuApi = (menuData) => {
  return axios.post("/menuManage/createMenu", menuData);
};

// 获取父级菜单接口
export const getParentMenu = () => {
  return axios.get("/menuManage/getParentMenu");
};

// 获取菜单列表接口
export const getMenuList = () => {
  return axios.get("/menuManage/getMenuList");
};

// 更新菜单接口
export const updateMenuApi = (id, menuData) => {
  return axios.put(`/menuManage/updateMenu/${id}`, menuData);
};

// 删除菜单接口
export const deleteMenuApi = (id) => {
  return axios.delete(`/menuManage/deleteMenu/${id}`);
};
